package com.example.nacos;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA 2023.
 * Description:
 * User: 故我
 * Date: 2023-12-20
 * Time: 11:35
 */
@RestController
@RequestMapping("/get")
public class TestController {
    @Value("${myconfig}")
    private String myconfig;

    @RequestMapping("/myconfig")
    public String getMyconfig() {
        return myconfig;
    }
}
